import React from 'react'
import ReactDOM from 'react-dom/client'
// 导入 antd 样式
import 'antd/dist/antd.min.css'
import './index.scss'
import App from './App'
import { Provider } from 'react-redux'
import store from './store'
// antd组件库全局国际化
// 中文语言包
import zhCN from 'antd/es/locale/zh_CN'
import { ConfigProvider } from 'antd'
// moment国际化
import 'moment/locale/zh-cn'
// 创建根实例

const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement)
root.render(
  // 集成redux store
  <Provider store={store}>
    <ConfigProvider locale={zhCN}>
      <App />
    </ConfigProvider>
  </Provider>
)
